<!--导航条-->

<nav class="navbar nav_head navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      <a class="navbar-brand " href=""></a> </div>
    <div class="navbar-collapse collapse navbar-right" id="navbar" aria-expanded="false" style="height: 1px;">
       <ul class="nav navbar-nav navbar-right nav_list">
  <li><a href="/index.php/Home/Index/Index">首页</a></li>
   <li><a href="#">查看我的订单</a></li>
   <li><a href="/index.php/Home/Index/LiuYan">用户留言</a></li>
    {if  $userId ==""}
  <li class="dropdown">
  <a href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown" >注册/登录 <span class="caret"  ></span></a>
  <ul class="dropdown-menu" role="menu">
   <li><a href="/index.php/Home/Manager/userLogin">login</a></li>
   <li class="divider"></li>
   <li><a href="/index.php/Home/Manager/userRegiter">register</a></li>
   </ul>
   </li>
   {/if}
   
    {if $userId !=""}
  <li class="dropdown">

		   <a href="" type="button" class="btn btn-default dropdown-toggle nav-user-background" data-toggle="dropdown" ><span> {$userName} </span><span class="caret"></span></a>
		   <ul class="dropdown-menu" >
		     <li><a href="/index.php/Home/Manager/logout">退出</a></li>

		   </ul>
   </li>
   {/if}
 </ul>
    </div>
    <!--/.navbar-collapse --> 
  </div>
</nav>